﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using GanoESB;
using System.Runtime.Serialization;

namespace API
{
    [ServiceContract(CallbackContract = typeof(IServiceFinder))]
    public interface IService1
    {
        [OperationContract]
        string SayHello(string name);
    }

    public class SayHelloMessage : IMessage
    {
        public string Name { get; set; }

        #region IMessage 成员

        public string Scope
        {
            get { return "Service1"; }
        }

        public object[] GetArguments()
        {
            return new object[] { Name };
        }

        #endregion
    }

    //public class Service1Home : IService1
    //{
    //    #region IService1 成员

    //    public string SayHello(string name)
    //    {
    //        throw new NotImplementedException();
    //    }

    //    #endregion
    //}

}
